@extends('layouts.admin')

@section('content')
    <script type="application/javascript" src="{{url()}}/js/blobs.js"></script>
    <div class="modal-msg"></div>
    <input class="hidden container-name" value="{{$container}}" >
    <button type="button" class="btn btn-primary btn-md margin-bottom-10"
            data-toggle="modal" data-target="#uploadBlobModal"><i class="fa fa-plus-circle"></i> Upload Blob
    </button>
    <table class="table table-stripped">
        <tr>
            <th>ID</th>
            <th>Name</th>
            <th>Delete</th>
        </tr>
        {{--*/ $count = 1 /*--}}
        @foreach($blobs as $blob)
            <tr class="row-{{$count}}">
                <td>{{$count}}</td>
                <td><a href="{{$blob->getURL()}}" class="name">{{$blob->getName()}}</a></td>
                <td><a href="#" onclick="deleteBlobModal({{$count++}})"><i class="fa fa-remove"></i> </a> </td>
            </tr>
        @endforeach
    </table>
    @include('modals.uploadblob')
    @include('modals.deleteblob')
@endsection